package data;

public class Data implements Comparable {
    String name;
    int time;

    public Data(String name, int time) {
        this.name = name;
        this.time = time;
    }

    public String getName() {
        return this.name;
    }

    @Override
    public int compareTo(Object o) {
        Data d = (Data) o;
        return time - d.time;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }
}
